package com.itheima.tilas.po;

import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 存储插入班级信息的变量类
 *
 * @author 132
 */
@Data
public class InsertClazzOneParam {
    @NotNull(message = "班级名称不能为空")
    @Length(min = 4,max = 30,message = "班级姓名长度在[4,30]")
    private String name;
    @Length(min =1 ,max = 20 ,message = "班级教室长度范围[1,20]")
    private String room;
    @NotNull(message = "开课时间不能为空")
    private LocalDate beginDate;
    @NotNull(message = "结课时间不能为空")
    private LocalDate endDate;
    private Integer masterId;
    @NotNull(message = "学科不能为空")
    private Integer subject;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
}
